From: Andy Holmes Date: Mon, 7 Aug 2023 18:48:45 +0000 (-0700) Subject: notificationDaemon: Export notification source classes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~337^2~1^2~4 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a703e192ed4cd5df06f908e733ea4a28481bf95c;p=gnome-shell.git notificationDaemon: Export notification source classes Out of the members of the notification daemon(s), these are the most necessary and flexible to override. The daemons are used as singletons and notifications are rather temporary, while the sources are more flexible and make the most sense to override (and revert). Part-of: --- diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 31a871d04..a11e087f7 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -343,7 +343,7 @@ class FdoNotificationDaemon { } } -const FdoNotificationDaemonSource = GObject.registerClass( +export const FdoNotificationDaemonSource = GObject.registerClass( class FdoNotificationDaemonSource extends MessageTray.Source { _init(title, pid, sender, appId) { this.pid = pid; @@ -560,7 +560,7 @@ function getPlatformData() { function InvalidAppError() {} -const GtkNotificationDaemonAppSource = GObject.registerClass( +export const GtkNotificationDaemonAppSource = GObject.registerClass( class GtkNotificationDaemonAppSource extends MessageTray.Source { _init(appId) { let objectPath = objectPathFromAppId(appId);